package com.bosssoft.rbac.service;

import com.bosssoft.rbac.domain.SysPrivilege;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @ProjectName boss-rbac
 * @Description TODO
 * @author MaYunFei
 * @time 2022/7/5 19:26
 */
public interface SysPrivilegeService extends IService<SysPrivilege>{
    /**
     *  获取该菜单下面所有的权限
     * @param roleId
     *          roleId 代表当前的查询的角色的ID
     * @param menuId  菜单的ID
     *
     * @return
     */
    List<SysPrivilege> getAllSysPrivilege(Long menuId ,Long roleId);

    List<Long> getMenuIdByPrivilegeId(Long id);
}
